import Vue from 'vue';
import VueRouter from 'vue-router';
import Home  from '../components/display/Home.vue';
import R1  from '../components/display/R1.vue';
import R2  from '../components/display/R2.vue';
import R3  from '../components/display/R3.vue';
Vue.use(VueRouter);

const disrouter = new VueRouter({
  // mode: 'history',
  base: __dirname,
  routes: [{
    path: '/',
    redirect: '/home.html'
  },
  {
    path: '/home.html',
    name: '/home.html',
    component: Home,
  },
  {
    path: '/R1.html',
    name: '/R1.html',
    component: R1,
  },
  {
    path: '/R2.html',
    name: '/R2.html',
    component: R2,
  },
  {
    path: '/R3.html',
    name: '/R3.html',
    component: R3,
  }
  ]
});

export default disrouter;